package com.cswnode.Entity;

import java.util.Date;

/**
 * @author csw
 * @create 2020/9/16 15:26
 */

public class LoginTicket {
    private Integer id;
    private Integer userId;
    /**
     * 登陆凭证
     */
    private String ticket;

    /**
     * 用户状态
     * 0有效
     * 1无效
     */
    private Integer status;

    /**
     * 用户凭证到期时间
     */
    private Date expired;

    @Override
    public String toString() {
        return "LoginTicket{" +
                "id=" + id +
                ", userId=" + userId +
                ", ticket='" + ticket + '\'' +
                ", status=" + status +
                ", expired=" + expired +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getExpired() {
        return expired;
    }

    public void setExpired(Date expired) {
        this.expired = expired;
    }
}
